package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Td generated by hbm2java
 */
@Entity
@Table(name = "td")
public class Td implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private String dlwz;
    private String tdxz;
    private BigDecimal mj;
    private String yjsynx;
    private BigDecimal gjjz;
    private BigDecimal yjcrj;
    private BigDecimal zymj;
    private String htqx;
    private BigDecimal nzj;
    private Short xh;

    public Td()
    {
    }

    public Td( Long id )
    {
        this.id = id;
    }

    public Td( Long id,
               Jbqk jbqk,
               String username,
               String operation,
               Date optdate,
               String dlwz,
               String tdxz,
               BigDecimal mj,
               String yjsynx,
               BigDecimal gjjz,
               BigDecimal yjcrj,
               BigDecimal zymj,
               String htqx,
               BigDecimal nzj,
               Short xh )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.dlwz = dlwz;
        this.tdxz = tdxz;
        this.mj = mj;
        this.yjsynx = yjsynx;
        this.gjjz = gjjz;
        this.yjcrj = yjcrj;
        this.zymj = zymj;
        this.htqx = htqx;
        this.nzj = nzj;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "dlwz", length = 100)
    public String getDlwz()
    {
        return this.dlwz;
    }

    public void setDlwz( String dlwz )
    {
        this.dlwz = dlwz;
    }

    @Column(name = "tdxz", length = 10)
    public String getTdxz()
    {
        return this.tdxz;
    }

    public void setTdxz( String tdxz )
    {
        this.tdxz = tdxz;
    }

    @Column(name = "mj", precision = 18)
    public BigDecimal getMj()
    {
        return this.mj;
    }

    public void setMj( BigDecimal mj )
    {
        this.mj = mj;
    }

    @Column(name = "yjsynx", length = 20)
    public String getYjsynx()
    {
        return this.yjsynx;
    }

    public void setYjsynx( String yjsynx )
    {
        this.yjsynx = yjsynx;
    }

    @Column(name = "gjjz", precision = 18)
    public BigDecimal getGjjz()
    {
        return this.gjjz;
    }

    public void setGjjz( BigDecimal gjjz )
    {
        this.gjjz = gjjz;
    }

    @Column(name = "yjcrj", precision = 18)
    public BigDecimal getYjcrj()
    {
        return this.yjcrj;
    }

    public void setYjcrj( BigDecimal yjcrj )
    {
        this.yjcrj = yjcrj;
    }

    @Column(name = "zymj", precision = 18)
    public BigDecimal getZymj()
    {
        return this.zymj;
    }

    public void setZymj( BigDecimal zymj )
    {
        this.zymj = zymj;
    }

    @Column(name = "htqx", length = 20)
    public String getHtqx()
    {
        return this.htqx;
    }

    public void setHtqx( String htqx )
    {
        this.htqx = htqx;
    }

    @Column(name = "nzj", precision = 18)
    public BigDecimal getNzj()
    {
        return this.nzj;
    }

    public void setNzj( BigDecimal nzj )
    {
        this.nzj = nzj;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
